package cuit.blog.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import cuit.blog.dao.PictureRespository;
import cuit.blog.entity.Picture;
import cuit.blog.entity.Reply;
import jakarta.transaction.Transactional;

@Service
@Transactional
public class PictureService {
	@Autowired
    PictureRespository pictureRespository;
	/**
     * 查找所有
     * @return
     */
    public List<Picture> findByUser_id(Long User_id){
    	return pictureRespository.findByUser_id(User_id);
    }
	public void save(Picture picture) {
		// 保存
		pictureRespository.save(picture);
	}
}
